package structure

//提币状态
type WithdrawState uint8

const (
	WithdrawInit WithdrawState = 1 //提币交易-初始化

	WithdrawTransactionBuild      WithdrawState = 2 //提币交易-链上构建
	WithdrawTransactionSign       WithdrawState = 3 //提币交易-链上签名
	WithdrawTransactionBroadcast  WithdrawState = 4 //提币交易-链上广播
	WithdrawTransactionConfirming WithdrawState = 5 //提币交易-链上确认中
	WithdrawTransactionSuccess    WithdrawState = 6 //提币交易-链上成功
	WithdrawTransactionFail       WithdrawState = 7 //提币交易-链上失败

	WithdrawBillConfirming     WithdrawState = 8  //充币交易-交易所上账中
	WithdrawBillConfirmSuccess WithdrawState = 9  //充币交易-交易所上账成功
	WithdrawBillConfirmFail    WithdrawState = 10 //充币交易-交易所上账失败
)

type WithdrawOrder struct {
	WithdrawID     uint64        `json:"WithdrawID"` //交易所指定的全局唯一ID
	Hash           string        `json:"Hash"`
	WithdrawState  WithdrawState `json:"WithdrawState"`
	From           string        `json:"From"`
	To             string        `json:"To"`
	WithdrawAmount string        `json:"WithdrawAmount"`
	FeeAmount      string        `json:"FeeAmount"`
	TotalAmount    string        `json:"TotalAmount"`
	Ts             int64         `json:"Ts"`
	Remark         string        `json:"Remark"` //备注
}
